From: Ambroise Vincent Date: Tue, 23 Jul 2019 10:10:27 +0000 (+0100) Subject: intel: agilex: Fix build error X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=3bd24e72422378fdead96970979ce33c80e3bf62;p=project%2Fbcm63xx%2Fatf.git intel: agilex: Fix build error "result of '1 << 31' requires 33 bits to represent, but 'int' only has 32 bits [-Werror=shift-overflow=]" This is treated as an error since commit 93c690eba8ca ("Enable -Wshift-overflow=2 to check for undefined shift behavior") Change-Id: I141827a6711ab7759bfd6357e4ed9c1176da7c7b Signed-off-by: Ambroise Vincent --- diff --git a/plat/intel/soc/agilex/include/agilex_mailbox.h b/plat/intel/soc/agilex/include/agilex_mailbox.h index 2a214475..cd8be289 100644 --- a/plat/intel/soc/agilex/include/agilex_mailbox.h +++ b/plat/intel/soc/agilex/include/agilex_mailbox.h @@ -7,6 +7,8 @@ #ifndef AGX_MBOX_H #define AGX_MBOX_H +#include + #define MBOX_OFFSET 0xffa30000 #define MBOX_ATF_CLIENT_ID 0x1 @@ -76,7 +78,7 @@ #define RECONFIG_STATUS_STATE 0 #define RECONFIG_STATUS_PIN_STATUS 2 #define RECONFIG_STATUS_SOFTFUNC_STATUS 3 -#define PIN_STATUS_NSTATUS (1 << 31) +#define PIN_STATUS_NSTATUS (U(1) << 31) #define SOFTFUNC_STATUS_SEU_ERROR (1 << 3) #define SOFTFUNC_STATUS_INIT_DONE (1 << 1) #define SOFTFUNC_STATUS_CONF_DONE (1 << 0)